Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolve #763 -- choose multiselect for options with choices and nargs=+ or * #892

Open
wants to merge 1 commit into
base: 1.2.1-release
Choose a base branch
from

Conversation

jacadzaca
Copy link

@jacadzaca jacadzaca commented Sep 27, 2023

fix #763

Example:

from gooey import Gooey, GooeyParser


@Gooey
def main():
    parser = GooeyParser()
    parser.add_argument(
        'some_argument',
        nargs='+',
        choices=['jaca', 'paca'],
    )
    argv = parser.parse_args()

    print(argv.some_argument)


if __name__ == '__main__':
    main()

TL;DR:

  • You're opening this PR against the current release branch
  • Works on both Python 2.7 & Python 3.x
  • Commits have been squashed and includes the relevant issue number
  • Pull request description contains link to relevant issue or detailed notes on changes
  • This must include example code demonstrating your feature or the bug being fixed
  • All existing tests pass
  • Your bug fix / feature has associated test coverage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant